          <div class="hero-unit">
            <input type="hidden" value="<?=$base?>"  id="base" />
            <h3>课程列表</h3>
                <table class="table">
                    <thead>
                        <tr>
                            <th>
                                课程
                            </th>
                            <th>
                                上课周次
                            </th>
                            <th>
                                星期
                            </th>
                            <th>
                                第几节
                            </th>
                            <th>
                                上课地点
                            </th>
                            <th>
                                数量
                            </th>
                            <th>
                                教师
                            </th>
                            <th>
                                操作
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php if($pageInfo):?>
                        <?php foreach ($pageInfo['content'] as $key => $value):?>
                                <tr class='info'>
                                    <td><?=$value->name?></td>
                                    <td><?=$value->timeLong?></td>
                                    <td><?=$value->weekday?></td>
                                    <td><?=$value->section?></td>
                                    <td><?=$value->place?></td>
                                    <td><?=$value->now_count?>/<?=$value->count?></td>
                                    <td><?=$value->teacher?></td>
                                    <td><a class="info_change" title="<?=$value->name?>" onclick="return course_select(this);" href="<?=$base?>admin/student/elective_course_select/<?=$value->id?>">选择</a></td>
                                </tr>
                        <?php endforeach;?>
                    <?php else:?>
                        <tr>没有课程安排信息</tr>
                    <?php endif;?>
                    </tbody>
                    </table>
                    <?php if($pageInfo):?>
                    <div class="pagination">
                            <ul>
                                <li>
                                    <a class="pageInfo" onclick="return pageInfo(this);" href="<?=$base?>admin/course/course_select_panel/<?=$pageInfo['first_page']?>-<?=$pageInfo['each_page']?>.html">首页</a>
                                </li>
                                <?php if($pageInfo['pre_page']!=''):?>
                                <li>
                                    <a class="pageInfo" onclick="return pageInfo(this);" href="<?=$base?>admin/course/course_select_panel/<?=$pageInfo['pre_page']?>-<?=$pageInfo['each_page']?>.html">上一页</a>
                                </li>
                                <?php endif;?>
                                <li><a class="pageInfo" onclick="return pageInfo(this);" href="<?=$base?>admin/course/course_select_panel/<?=$pageInfo['current_page']?>-<?=$pageInfo['each_page']?>.html"><?=$pageInfo['current_page']?></a></li>
                                <?php if($pageInfo['next_page']!=''):?>
                                <li>
                                    <a class="pageInfo" onclick="return pageInfo(this);" href="<?=$base?>admin/course/course_select_panel/<?=$pageInfo['next_page']?>-<?=$pageInfo['each_page']?>.html">下一页</a>
                                </li>
                                <?php endif;?>
                                <li>
                                    <a class="pageInfo" onclick="return pageInfo(this);" href="<?=$base?>admin/course/course_select_panel/<?=$pageInfo['end_page']?>-<?=$pageInfo['each_page']?>.html">尾页</a>
                                </li>
                            </ul>
                    </div>
                <?php endif;?>
                <div>
                    <h4>已选：</h4>
                    <?php if($elective_course):?>
                    <table class="table">
                        <thead>
                            <tr>
                                <th>
                                    课程
                                </th>
                                <th>
                                    上课周次
                                </th>
                                <th>
                                    星期
                                </th>
                                <th>
                                    第几节
                                </th>
                                <th>
                                    上课地点
                                </th>
                                <th>
                                    数量
                                </th>
                                <th>
                                    教师
                                </th>
                                <th>
                                    操作
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php foreach ($elective_course as $key => $value):?>
                                <tr class='info'>
                                    <td><?=$value->name?></td>
                                    <td><?=$value->timeLong?></td>
                                    <td><?=$value->weekday?></td>
                                    <td><?=$value->section?></td>
                                    <td><?=$value->place?></td>
                                    <td><?=$value->now_count?>/<?=$value->count?></td>
                                    <td><?=$value->teacher?></td>
                                    <td><a class="info_change" title="<?=$value->name?>" onclick="return course_select(this);" href="<?=$base?>admin/student/elective_course_cancel/<?=$value->id?>">退课</a></td>
                                </tr>
                        <?php endforeach;?>
                    </tbody>
                    </table>
                    <?php else:?>
                        <tr>无</tr>
                    <?php endif;?>
                </div>
          </div>